package com.learn.actionplatfo.service;

import com.learn.actionplatfo.Mapper.UserMapper;
import com.learn.actionplatfo.bean.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public List<User> selectAll(){
        return userMapper.selectAll();
    }

    public User getUserById(int id){
        return userMapper.getUserById(id);
    }
}
